package com.car.oop;

public class Aodi extends  Car {
    int price;
    String type;
    public Aodi(){

    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public  Aodi(int price, String type){
        this.price = price;
        this.type = type;

    }
    public void variableSpeed(){
        System.out.println(getBrand()+"汽车正在减速行驶");

    }

    }

